<div class="row-fluid" data-ng-controller="postsController" data-ng-init="find()">
    <div class="media" data-ng-repeat="post in posts">
        <a class="pull-left" href="#">
            <img class="media-object" data-src="holder.js/64x64">
        </a>
        <div class="media-body">
            <h4 class="media-heading">{{post.title}}</h4>

            <span>{{post.createTime | date:'medium'}}</span>
            <span>{{post._creator}}</span>
            <!-- Nested media object -->
            <div class="media">
                {{post.content}}
            </div>
        </div>
        <div class="btn-group">
            <a href="/view/{{post._id}}" class="btn">Xem</a>
            <a href="/" ng-click="remove(post)" class="btn">Xóa</a>
            <a href="/edit/{{post._id}}" class="btn">Sửa</a>
        </div>
    </div>
    <br>
    <h1 data-ng-hide="!post || post.length">No articles yet.</h1>
    <a class="btn btn-primary" href="/create">Create One</a>
</div>
